package iotwisp.school.user.command.organization;

import iotwisp.base.cqrs.SPIBaseCommand;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;

@SuppressWarnings("serial")
@Data
@EqualsAndHashCode(callSuper = false)
public class ModifyOrganizationSCmd extends SPIBaseCommand {

    @NotBlank(message = "机构id不能为空")
    private String organizationId;

    private String defaultRoleId;

    @NotBlank(message = "上级机构id不能为空")
    private String parentOrganizationId;

    @NotBlank(message = "机构名称不能为空")
    private String name;

    private String type;

    private String address;

    private String phone;
}
